#ifndef __LOG_H__
#define __LOG_H__

#include <stdio.h>
#include <stdarg.h>
#include "ccw_define.h"

#define LOG_LEVEL_INFO      1
#define LOG_LEVEL_DEBUG     2
#define LOG_LEVEL_WARN      3
#define LOG_LEVEL_ERROR     4

#ifndef CCW_TAG
#define CCW_TAG "LOG"
#endif

int ccw_dbg_log_i(ccw_str tag, const ccw_str fmt, ...);
int ccw_dbg_log_d(ccw_str tag, const ccw_str fmt, ...);
int ccw_dbg_log_w(ccw_str tag, const ccw_str fmt, ...);
int ccw_dbg_log_e(ccw_str tag, const ccw_str fmt, ...);

#endif // __LOG_H__